<me:UIWS x:Class="WPFExcelReport.TSWS02"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL" 
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls" 
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                    Background="White"  
                    x:Name="TV"
                    Loaded="Window_Loaded"
     >
    <me:UIWS.Resources>
        <CollectionViewSource  x:Key="vwMaster"/>       <CollectionViewSource  x:Key="vwDetail"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:TextTrimmingConverter  x:Key="trim"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
    </me:UIWS.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="Auto"></RowDefinition> 
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto"></ColumnDefinition>
            <ColumnDefinition Width="Auto"></ColumnDefinition>
            <ColumnDefinition Width="Auto"></ColumnDefinition>
        </Grid.ColumnDefinitions>
        <TextBlock Grid.Row="0"  Grid.Column="0"   Text="{Binding Source={Localization:Translate Word=面料:}}"></TextBlock>
        <Button  Grid.Row="0"  Grid.Column="1"  Click="ManageCommand" Width="24" Height="20"
                 Visibility="{Binding IsMaster, Converter={StaticResource bv}}">
            <Button.Background>
                <ImageBrush  ImageSource="/ImagePackage;component/Images/Extend.png" />
            </Button.Background>
        </Button>
        <ComboBox   DropDownOpened="ComboBox_DropDownOpened"
            Grid.Row="0"  Grid.Column="1" 
             IsEditable="True"
            Width="180" 
            SelectedValuePath="KEY"
            DisplayMemberPath="KEY"  
            ItemsSource="{Binding Source={StaticResource vwMaster}}"  
            IsSynchronizedWithCurrentItem="True" 
            Name="dlgMaster"
            >
        </ComboBox  > 
        <TextBlock  Grid.Row="0"  Grid.Column="2"  HorizontalAlignment="Left"
                    Text="{Binding WABEZ,Converter={StaticResource gb2312}}" Width="100" />
     </Grid>
</me:UIWS>
